package com.dingup.mock.enums;

/**
 * Created by yanggavin on 16/4/29.
 */
public enum SpeakingQuestionTypeEnum {
    Q1("Q1", "第一题"),
    Q2("Q2", "第二题"),
    Q3("Q3", "第三题"),
    Q4("Q4", "第四题"),
    Q5("Q5", "第五题"),
    Q6("Q6", "第六题");

    private final String code;
    private final String des;

    SpeakingQuestionTypeEnum(String code, String des) {
        this.code = code;
        this.des = des;
    }

    public String getCode() {
        return code;
    }
    public String getDes() {
        return des;
    }
    public static Boolean contains(String name){
        for (SpeakingQuestionTypeEnum e : values()){
            if (e.name().equals(name)){
                return true;
            }
        }
        return false;
    }
}
